package com.fary.ribbon;

import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * 配置文件方式配置 Ribbon
 * 除了使用代码进行 Ribbon 的配置，我们还可以通过配置文件的方式来为 Ribbon 指定对应的配置：
 * <clientName>.ribbon.NFLoadBalancerClassName: Should implement ILoadBalancer(负载均衡器操作接口)
 * <clientName>.ribbon.NFLoadBalancerRuleClassName: Should implement IRule(负载均衡算法)
 * <clientName>.ribbon.NFLoadBalancerPingClassName: Should implement IPing(服务可用性检查)
 * <clientName>.ribbon.NIWSServerListClassName: Should implement ServerList(服务列表获取)
 * <clientName>.ribbon.NIWSServerListFilterClassName: Should implement ServerList­Filter(服务列表的过滤)
 */
@RibbonClient(name = "eureka-consumer", configuration = RibbonConfig.class)
public class RibbonClientConfig {

}